import * as THREE from 'three';

export default {
    // 环境光
    ambient: new THREE.AmbientLight(0x444444),
    // 点光源
    point: (function (){
        let point = new THREE.PointLight(0xffffff)
        point.position.set(400, 200, 300)  // 点光源位置
        return point
    })(),
    getByIndex: function(index) {
        return this[Object.keys(this)[index]]
    }
}

/**
 * 光源	简介
 * AmbientLight	环境光
 * PointLight	点光源
 * DirectionalLight	平行光，比如太阳光
 * SpotLight	聚光源
 *
 *
 *
 *
 *
 *
 */